﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Web.Mvc;

namespace Beeldbankmvc.Models
{
    public class ReactionCorrespondenceModel
    {
        public ReactionCorrespondenceModel()
        {
        }

        public static IList<SelectListItem> subjectList()
        {
            IList<SelectListItem> itemList = new List<SelectListItem>();
            itemList.Add(new SelectListItem { Text = "Vraag", Value = "1" });
            itemList.Add(new SelectListItem { Text = "Probleem", Value = "2" });
            itemList.Add(new SelectListItem { Text = "Suggestie", Value = "3" });
            itemList.Add(new SelectListItem { Text = "Klacht", Value = "4" });

            return itemList;
        }

        public static IList<SelectListItem> categoryList()
        {
            IList<SelectListItem> itemList = new List<SelectListItem>();
            itemList.Add(new SelectListItem { Text = "Algemeen", Value = "1" });
            itemList.Add(new SelectListItem { Text = "Bestelling", Value = "2" });

            return itemList;
        }

        [Required(ErrorMessage = "Emailadres is verplicht")]
        [DataType(DataType.EmailAddress)]
        [DisplayName("Emailadres *")]
        public string Email { get; set; }

        [Required(ErrorMessage = "Naam is verplicht")]
        [DataType(DataType.Text)]
        [DisplayName("Naam *")]
        public string Name { get; set; }

        
        [DataType(DataType.Text)]
        [DisplayName("Onderwerp")]
        public string Subject { get; set; }

        
        [DataType(DataType.Text)]
        [DisplayName("Categorie")]
        public string Category { get; set; }

        [Required(ErrorMessage = "Bericht is verplicht")]
        [DataType(DataType.MultilineText)]
        [DisplayName("Bericht *")]
        public string Message { get; set; }


        public string Status { get; set; }

        public int ReactieId { get; set; }

    }
}